<template>
  <div id="app">
    <button @click="fn">测试</button>
    <router-view />
    <mt-popup v-model="popupVisible" closeOnClickModal position="right">
      {{spp}}
      三生三世
    </mt-popup>
  </div>
</template>

<script>
import da from "./assets/js/da.js";
import { mapState } from "vuex";
export default {
  name: "App",
  data() {
    return {
      popupVisible: false
    };
  },
  computed: {
    spp: {
      get() {
        return this.$store.state.sp;
      }
    }
    //state => state.sp
  },
  methods: {
    fn() {
      console.log(this.spp);
      // this.popupVisible = !this.popupVisible;
    }
  }
};
</script>

<style>
#app,
body {
  width: 100%;
  height: 100%;
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  text-decoration: none;
}
</style>
